package com.fz.entity.msg;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 短信发送记录表 
 * </p>
 *
 * @author fh
 * @since 2021-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dr_msg")
@ApiModel(value="Msg对象", description="短信发送记录表 ")
public class Msg extends Model<Msg> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "短信id")
    @TableId(value = "msg_id", type = IdType.AUTO)
    private Integer msgId;

    @ApiModelProperty(value = "接收手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "短信内容 验证码或短信内容")
    private String content;

    @ApiModelProperty(value = "模板标识")
    private String modeType;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "1. 代表注册或登录验证码")
    private Integer type;


    @Override
    protected Serializable pkVal() {
        return this.msgId;
    }

}
